﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Vending_machine_system.VendingMachineClass
{
    /// <summary>
    /// 商品信息表
    /// </summary>
    public class ShoppingClass
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public long ShopId { get; set; }
        //商品所属类别
        public int ShoppTypeId { get; set; }
        //所属商家
        public long BusinessId { get; set; }
        //商品名称
        public string? ShoppName { get; set; }
        //商品价格
        public decimal? ShoppPrice { get; set; }
        //商品库存
        public int Shoppstocks { get; set; }
        //商品图片
        public string? ShoppImg { get; set; }
        //是否上架
        public bool IsDeleted { get; set; } = true;
        //进货日期
        public DateTime ShoppeDate { get; set; }
    }
}
